import { post } from "../utils/http";

const API = {
  Login: "/login",
};

interface LoginParam {
  username: string;
  password: string;
}
function loginApi(data: LoginParam): Promise<any> {
  return post(API.Login, data);
  
}

export { loginApi };
